<?php 
     $product   = $this->product;
     $commnet   = $this->commnets;
    
?>
 <!-- Begin div main-->
            <div class="main">
               <!--Begin div left-->
               <div class="left">
                  <h3 class="h2-right"><?php echo $product['0']['title']; ?></h3>
                   <div class="content">
                       <?php echo $product['0']['introtext']; ?>
                        <?php echo $product['0']['fulltext']; ?>
                    </div>
                    <div class="content_comment" style="<?php if (count($commnet)<=0) echo 'display:none'; ?>">
                         <h3 class="h2-right">Ý kiến bạn đọc</h3>
                          <ul>
                             <?php foreach ($commnet as $com){ ?>
                               <li>
                                   <h4><?php echo $com['title']; ?></h4>
                                   <?php echo $com['fulltext']; ?>
                               </li>
                             <?php }?>
                             
                          </ul>
                    
                    
                    </div>
                    
                   
                    <div class="related_product">
                       <h3 class="h2-right">Góp ý</h3>
                       <div class="commnets">
                         <form id="form1" method="post" action="">
							  <table width="100%" border="0" cellpadding="4" cellspacing="2" class="comments_table">
							    <tr>
							      <td width="138" class="comments_left">Họ tên</td>
							      <td width="859">
							        <input type="text" name="name1" id="name1" value="<?php echo $this->arrParam['name1']; ?>" class="txt_texbox" />
							        <span class="error"><?php echo $this->name; ?></span>
							      </td>
							    </tr>
							    <tr>
							      <td class="comments_left">Tiêu đề</td>
							      <td>
							        <input type="text" name="tieude" id="tieude" value="<?php echo $this->arrParam['tieude']; ?>" class="txt_texbox" />
							         <span class="error"><?php echo $this->tieude; ?></span>
							      </td>
							    </tr>
							    <tr>
							      <td class="comments_left">Email</td>
							      <td>
							        <input type="text" name="email" id="email" value="<?php echo $this->arrParam['email']; ?>" class="txt_texbox" />
							        <span class="error"><?php echo $this->email; ?></span>
							      </td>
							    </tr>
							     <tr>
							      <td class="comments_left">Địa chỉ</td>
							      <td>
							        <input type="text" name="address" id="address"  value="<?php echo $this->arrParam['address']; ?>" class="txt_texbox" />
							         <span class="error"><?php echo $this->address; ?></span>
							      </td>
							    </tr>
							    <tr>
							       <td></td>
							       <td> <span><?php echo $this->fulltext; ?></span></td>
							    </tr>
							    <tr>
							      <td valign="top" class="comments_left">Nội Dung</td>
							      <td>
							        <textarea name="fulltext" id="fulltext" cols="45" rows="5"> <?php echo $this->arrParam['fulltext']; ?></textarea>
							           <script type="text/javascript">
							            var editor = CKEDITOR.replace('fulltext',{
							            uiColor : '#9AB8F3',
							            language:'en',
							            skin:'office2003',
							            width:'98%',
							            filebrowserImageBrowseUrl : '<?php echo JURI."/ckfinder/ckfinder.html?Type=Images";?>',
							            filebrowserFlashBrowseUrl : '<?php echo JURI."/ckfinder/ckfinder.html?Type=Flash";?>',
										filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
										filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
										 	
							            toolbar:[
							            ['Bold','Italic','Underline','Strike','-','NumberedList','BulletedList','-','Outdent',
								            'Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','FontSize','Font'],
							           
							         
							           
							            ]
							        });		
							        </script>
							          
							        
							      </td>
							    </tr>
							    
							    <tr>
							      <td valign="top"></td>
							      <td>
							        <input type="submit" value="Gửi ý kiến" name="send"> 
							        <input type="hidden" value="<?php echo $this->arrParam['id']; ?>" name="id">
							      </td>
							    </tr>
							  </table>
							 
							</form>
                       </div>                       
                      <br clear="all"/>
                    </div>
                      
               </div>
               <!--End div left-->
 